<html>
  <head>
    <title>reactdemo</title>
    <script src="/static/react.js"></script>
    <script src="/static/react-dom.js"></script>
    <script src="/static/browser.min.js"></script>
  </head>
  <body>
    <div id="container"></div>
    <script type="text/babel">
      var HelloWorld=React.createClass({
        render:function(){
          return(//返回jsx对象
            <div>
                <p>Hello,{this.props.args}!</p>
            </div>
          );
        }
      });
      ReactDOM.render(
        <div>
          <HelloWorld args="json"/>
          <HelloWorld args="小明"/>
          <HelloWorld/>
        </div>
        ,
      document.querySelector("#container")
      );

    </script>
  </body>
</html>
